package com.javaweb.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.javaweb.admin.entity.KdlPOD;
import com.javaweb.admin.query.KdlPODQuery;
import com.javaweb.admin.vo.kdlpod.KdlPODVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface KdlPODMapper extends BaseMapper<KdlPOD> {
    @Select("select isnull(convert(varchar(20),max(sync_time),120),'2024-03-28 00:00:00') from kdl_pod")
    String GetMaxSyncTime();

    IPage<KdlPODVo> getPODList(IPage<KdlPODVo> page, @Param("req") KdlPODQuery req);
}
